<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
      margin: 0;
      padding: 0;
      background-image: url('img/1.jpg');
      background-size:50%;
    }
         form{
      max-width: 400px;
      height: 350px;
      background-color: rgba(247,247,247,0.2);
      border: 1px solid #E4E4E4;
      margin:100px auto  ;
      color: #000;
      border-radius: 5px;
      padding: 25px 45px;
      text-shadow: 1px 1px 1px burlywood;
    }
    div{
      width: 100%;
      height: 35px;
      line-height: 35px;
      margin-top: 20px;
      position: relative;
    }
    input{
      position: absolute;
      right: 80px;
      width: 60%;
      height: 25px;
      line-height: 25px;
      border: 1px solid #DADADA;
      color: #888;
      outline: none;
      font-size: 12px;
      padding: 3px 3px 3px 5px;
      box-shadow: inset 0px 1px 4px #ececec;

    }
    input[type="submit"]{
      width: 50%;
      height: 40px;
      line-height: 15px;
      font-size: 15px;
      background-color: #BDCEFC;
      border: none;
      box-shadow: none;
      border-radius: 10px;
      color: #fff;
      position: relative;
      top: 50px;
      left: 25%;
    }
    input[type="submit"]:hover{
      cursor: pointer;
      background-color: skyblue;
    }
    a{
      width: 180px;
      display: block;
      margin: 80px auto;
    }

    </style>
</head>
<body>
    <form action="">
        <div>
          <label for="name">用户名:</label>
          <input type="text" id="name" name="name" placeholder="请输入用户名" required>
        </div>
        <div>
          <label for="pass">密&nbsp;&nbsp;&nbsp;码:</label>
          <input type="password" id="pass" name="pass" placeholder="请输入密码" required>
        </div>
        <div>
            <label for="qpass">密&nbsp;&nbsp;&nbsp;码:</label>
            <input type="password" id="qpass" name="qpass" placeholder="请确认密码" required>
          </div>
        <input type="submit" value="注册" name="reg">
        <a href="login.html">已有账号，去登录</a>
      </form>
</body>
</html>